import { promiseCall, promiseCallSilent } from '@/api/request'
class BaseService {
  constructor(isSilent) {
    this.isSilent = isSilent
  }

  remoteCall (url, data, cb) {
    if (this.isSilent) { return promiseCallSilent(url, data, cb) } else { return promiseCall(url, data, cb) }
  }
}
export default BaseService;
